﻿using SMS.cntr;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SMS.view
{
    public partial class LoginForm : Form
    {
        public LoginForm()
        {
            InitializeComponent();
        }

        private void btnDangNhap_Click(object sender, EventArgs e)
        {
            if (UserCntr.Instance.CheckUser(txtUser.Text, txtPass.Text) == true)
            {
                //this.Hide();
                MainForm frmMain = new MainForm();
                this.CenterToScreen();
                frmMain.ShowDialog();
                this.Dispose();
            }
        }
    }
}
